package smetana.util;

/**
 * @author dmitry.mamonov
 */
public interface Work {
    void doWork();

    void publishResults();

    void failed(Throwable th);

    public abstract class Adapter implements Work {
        @Override
        public void publishResults() {
            //pass
        }

        @Override
        public void failed(Throwable th) {
            th.printStackTrace();
        }
    }
}
